package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.LuckRank;
import cn.sumpu.app.guoguojie.domain.LuckTime;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface LuckyDao {
    public void insertLuckTime(LuckTime luckTime) throws AppBusinessException;

    public void insertLuckRank(LuckRank luckRank) throws AppBusinessException;

    public void updateLuckTime(LuckTime luckTime) throws AppBusinessException;

    public void updateLuckRank(LuckRank luckRank) throws AppBusinessException;

    public void deleteLuckTime(Map<String, Object> map) throws AppBusinessException;

    public void deleteLuckRank(Map<String, Object> map) throws AppBusinessException;

    public int getLuckTimeCount(Map<String, Object> map) throws AppBusinessException;

    public int getLuckRankCount(Map<String, Object> map) throws AppBusinessException;

    public int getMinRank(Map<String, Object> map) throws AppBusinessException;
    
    public String getLastTime(Map<String, Object> map) throws AppBusinessException;

    public List<LuckTime> getLuckTime(Map<String, Object> map) throws AppBusinessException;

    public List<LuckRank> getLuckRank(Map<String, Object> map) throws AppBusinessException;
}
